﻿using System;

namespace _net_ex2_p2
{
    class Program
    {
        static void Main(string[] args)
        {
            Point p1 = new Point(1,1);
            Point p2 = new Point(3,1);
            Point p3 = new Point(3,3);
            Point p4 = new Point(1,3);
            Side s1 = new Side(p1,p2);
            Side s2 = new Side(p2,p3);
            Side s3 = new Side(p3,p4);
            Side s4 = new Side(p4,p1);

            Quads q = new Quads(s1,s2,s3,s4);
            Parallel p = new Parallel(s1,s2,s3,s4);
            Rectangle r = new Rectangle(s1,s2,s3,s4);

            System.Console.WriteLine("四个点的坐标:(1,1)(3,1)(3,3)(1,3)");
            System.Console.WriteLine("是否能构成四边形："+q.isLegel());
            System.Console.WriteLine("面积："+q.getArea());
            System.Console.WriteLine("是否平行四边形："+p.isParallel());
            System.Console.WriteLine("是否矩形："+r.isRectangle());

        }
    }
}
